package com.service.impl;

import com.bean.User;
import com.dao.impl.UserDaoImpl;
import com.service.UserService;

public class UserServiceImpl implements UserService {
    private  UserDaoImpl userDao = new UserDaoImpl();
    @Override
    public User queryUserByUsername(String username) {
//        return null;
        return userDao.queryUserByUsername(username);
    }

  //添加
    @Override
    public int insertUser(User user) {
//        return null;
        return  userDao.insertUser(user);
    }

    @Override
    public User queryUserBySelect(User user) {
        return userDao.queryUserBySelect(user);
    }
}
